package com.ruoyix.im.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 单聊记录视图对象 im_chat_user_message
 *
 * @author ruoyi
 * @date 2024-05-27
 */
@Data
@ExcelIgnoreUnannotated
public class ImChatUserMessageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 发送ID
     */
    @ExcelProperty(value = "发送ID")
    private Long fromId;

    /**
     * 接收ID
     */
    @ExcelProperty(value = "接收ID")
    private Long toId;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 是否已读[0:未读，1:已读]
     */
    @ExcelProperty(value = "是否已读[0:未读，1:已读]")
    private Integer messageStatus;

    private Date createTime;


}
